import request from '@/utils/request'

// 查询环境公示列表
export function listEnvironmental(query) {
  return request({
    url: '/social/environmental/list',
    method: 'get',
    params: query
  })
}

// 查询环境公示详细
export function getEnvironmental(id) {
  return request({
    url: '/social/environmental/' + id,
    method: 'get'
  })
}

// 新增环境公示
export function addEnvironmental(data) {
  return request({
    url: '/social/environmental',
    method: 'post',
    data: data
  })
}

// 修改环境公示
export function updateEnvironmental(data) {
  return request({
    url: '/social/environmental',
    method: 'put',
    data: data
  })
}

// 删除环境公示
export function delEnvironmental(id) {
  return request({
    url: '/social/environmental/' + id,
    method: 'delete'
  })
}

// 导出环境公示
export function exportEnvironmental(query) {
  return request({
    url: '/social/environmental/export',
    method: 'get',
    params: query
  })
}